package state;

public class GateStateContext {
    GateState gateState;

    public GateState getGateState() {
        return gateState;
    }

    public void setGateState(GateState gateState) {
        this.gateState = gateState;
    }

    public void execute() {
        gateState.onChange(this);
    }
}
